
using System;
using Qdb.Foundation;

namespace Qdb.Foundation
{
	public class SubTypePredicate : IPredicate4
	{
		private readonly Type _class;

		public SubTypePredicate(Type clazz)
		{
			_class = clazz;
		}

		public virtual bool Match(object candidate)
		{
			return _class.IsInstanceOfType(candidate);
		}
	}
}
